| commit | 0a46472d38fed7f29554e875129124fd25a2c8d0 | [log] [tgz] |
|---|---|---|
| author | James Graham <james@hoppipolla.co.uk> | Wed Mar 11 15:34:21 2015 |
| committer | James Graham <james@hoppipolla.co.uk> | Wed Mar 11 15:34:21 2015 |
| tree | 74b2029f6497ce95d3ab520921aaefc34b903e97 | |
| parent | e01d7e29d687c0eb3eb4a2c64f4c4685a79f9afb [diff] [blame] |
Pass routes in to servers rather than relying on global state. This makes multiprocessing work as expected on Windows
diff --git a/serve b/serve index 367ae71..51761b0 100755 --- a/serve +++ b/serve
@@ -1,4 +1,5 @@ #!/usr/bin/env python -from tools.serve import serve +import serve -serve.main() +if __name__ == "__main__": + serve.main()